#include <iostream>
#include <unistd.h>
#include <stdlib.h>
using namespace std;

int main()
{
  while(1)
  {
    cout << "我是子进程，pid：" << getpid() << endl;
    cout << "MYENV:" << getenv("MYENV") << endl;
    cout << "PATH:" << getenv("PATH") << endl;
    cout << "我是子进程，pid：" << getpid() << endl;
    sleep(1);
  }
  return 0;
}
